package com.py.credit.service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.credit.entity.GatewayUserEntity;
import com.py.framework.core.common.Page;
import com.py.framework.core.rest.support.RestServiceResult;

/**
 * 信用评价前台网站信用申报Service
 */
public interface GatewayDeclarationInformationService {

	List<LinkedHashMap> selectDeclarationInformationList(String tybm, int rootId);

	List<LinkedHashMap> selectListForPage(String tybm, String tableName, Page page);

	LinkedHashMap selectInfo(String tableName, String id);

	RestServiceResult addInfo(GatewayUserEntity gatewayUserEntity, String tableName, String data);

	RestServiceResult modifyInfo(String id, String tableName, String data);

	void delInfo(String id, String tableName);

	List<LinkedHashMap> selectTableTitleList(String tableName);

	/**
	 * 校验规则
	 *
	 * @param packageName
	 * @param methodName
	 * @param data
	 * @param extend
	 * @return
	 */
	boolean checkRule(String packageName, String methodName, String data, String extend);

	/**
	 * 查询表字段规则
	 *
	 * @param ids
	 * @return
	 */
	List<Map<String, String>> selectColumnRuleList(@Param(value = "ids") List<String> ids);
}